home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
rsxwdk2s.zip
/
RSXWDK
/
LIBSRC
/
DOS
/
DOS19.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-17
|
251b
|
18 lines
#include <errno.h>
#include <sys/doscalls.h>
/*
** AH = 0x19
** return: AL this drive (a=0,b=1,c=2)
*/
unsigned char dos_getdrive(void)
{
struct REGPACK r;
r.eax = 0x1900;
_intr(0x21, &r);
return (r.eax & 0xFF);
}